]> dgit.raspbian.org Git - gnome-shell.git/commit
status/network: Only show custom wired names
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 6 Feb 2023 11:22:48 +0000 (08:22 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 6 Feb 2023 11:22:48 +0000 (08:22 -0300)
commit9d75d777c72e4ddc9b05c06f0077484b7002625e
tree55d21c9a65e6f5737220c22fde8ed8946c53220d
parent3d645eada0c939b3e408d1f730e6aac811625956
status/network: Only show custom wired names

Thanks to NetworkManager's connection name disambiguation, it's
pretty common for single wired connections to be named "Wired". This
is fine and what we want almost all times, but in the specific case
of quick settings, we already have a "Wired" string set as title of
the quick settings toggle, so having that as subtitle is reduntant.

Hide the subtitle label (by returning null) when the subtitle of
a wired network matches the title.

Fixes ab10b95d2dc6bda1fc0fcc3b451e535f2fc160a8
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6369

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2627>
js/ui/status/network.js